package cn.wp.ewallet.wmps.model.entity;

import cn.hutool.core.date.DateTime;
import cn.wp.common.core.dao.annotation.Column;
import cn.wp.common.core.dao.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * 理财订单-Do实体
 * Created by yangjin on 2020/01/10
 */
@Data
@Table(value = "prod_order_rel",keys = {"prod_order_id"})
public class ProdOrderRelDo implements Serializable {

    /** 理财订单唯一标识  */
    @Column("prod_order_id")
    private String prodOrderId;

    /** 理财产品唯一标识  */
    @Column("fina_prod_id")
    private String finaProdId;

    /** 账户唯一标识  */
    @Column("account_id")
    private String accountId;

    /** 购买数量  */
    @Column("purch_amount")
    private BigDecimal purchAmount;

    /** 购买时间  */
    @Column("purch_time")
    private Date purchTime;

    /** 生效时间为计息时间  */
    @Column("eff_date")
    private Date effDate;

    /** 1000-计息中（已生效，计息中）
     2000-待计息
     3000-正常理财结束
     4000-提前赎回结束
     5000-已完成（购买天天盈产品生效计息）
     6000-转出成功（转出天天盈产品成功）  */
    @Column("order_status")
    private String orderStatus;

    /**   */
    @Column("status_time")
    private Date statusTime;

    public ProdOrderRelDo(String prodOrderId, String finaProdId, String accountId, BigDecimal purchAmount,
                          DateTime purchTime, Date effDate, String orderStatus, Date statusTime) {
        this.prodOrderId = prodOrderId;
        this.finaProdId = finaProdId;
        this.accountId = accountId;
        this.purchAmount = purchAmount;
        this.purchTime = purchTime;
        this.effDate = effDate;
        this.orderStatus = orderStatus;
        this.statusTime = statusTime;
    }
    public ProdOrderRelDo(){

    }
}